package com.htht.job.admin.controller.ftp;

import com.htht.job.core.api.DubboService;
import com.htht.job.executor.model.ftp.Ftp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zzj on 2018/1/16.
 */
@Controller
@RequestMapping("/ftp")
public class FtpController {
	@Autowired
	private DubboService dubboService;

	
	
	@RequestMapping
	public String index(Model model) {

		return "/ftp/ftp";
	}

	
	
	@RequestMapping("/findSelectFtp")
	@ResponseBody
	public String findSelectFtp() {
		return dubboService.findSelectFtp();
	}

	@RequestMapping("/getById")
	@ResponseBody
	public Ftp getById(String id) {
		return dubboService.getById(id);
	}

	@RequestMapping("/del")
	@ResponseBody
	public int del(String id) {
		return dubboService.del(id);
	}

	@RequestMapping("/updeat")
	@ResponseBody
	public int updeat(Ftp ftp) {
		return dubboService.updeat(ftp);
	}

}
